withFailTitle

fun withFailTitle(singleFailText: Text, pluralFailText: Text? = null): ValidatedCondition<T>

Defines a custom condition fail-state title to appear in the de-activated widget. By default, (in english) these are "Condition not met" and "Conditions not met". A more specific message may be appropriate for user guidance, such as "[setting] disabled"

Return

this condition

Author

fzzyhmstrs

Since

0.5.4

Parameters

singleFailText

Text a message for a single condition failure, or if the number of conditions failing doesn't matter

pluralFailText

Text a message for when multiple conditions are not met. singleFailText will be used if this is null and the single is provided.